class Person(object):
    def __add__(self, other):
        return self.age + other.age
    def __eq__(self, other):
        return self.age == other.age
    def __init__(self, age):
        self.age = age

per1 = Person(10)
per2 = Person(30)
print(per1 + per2)
print(per1 == per2)

